1. Hi there Guest! You should join our Minecraft server @ meepcraft.com
  2. We also have a Discord server that you can join @ https://discord.gg/B4shfCZjYx
  3. Purchase a rank upgrade and get it instantly in-game! Minecraft Discord Upgrade

Painting Selector Plugin

Discussion in 'Denied' started by jadenPete, Jul 24, 2017.

?

Would a painting selector be useful?

  1. Yes

    13 vote(s)
    100.0%
  2. Maybe

    0 vote(s)
    0.0%
  3. No

    0 vote(s)
    0.0%
  1. jadenPete

    jadenPete Code Writer & Meme Trader

    Offline
    Messages:
    335
    Likes Received:
    387
    MasterofBoom likes this.
  2. MasterTurtle

    MasterTurtle Popular Meeper

    Offline
    Messages:
    233
    Likes Received:
    215
    I think this is a really cool plugin, it would be cool to see it on Meepcraft in the future.


    Sent from my iPad using Tapatalk
     
    jadenPete likes this.
  3. TheTastyNacho

    TheTastyNacho Celebrity Meeper

    Offline
    Messages:
    589
    Likes Received:
    354
    I don't code and can't read yours. Could you explain what the plugin does?
     
  4. jadenPete

    jadenPete Code Writer & Meme Trader

    Offline
    Messages:
    335
    Likes Received:
    387
    Sorry if i didn't include enough on the Github description, but it basically works as follows:
    1. You do /painting list to see the names of the various paintings
    2. You do /painting select <name> to select the type of the next painting you place.
    3. You place a painting and it attempts to place the painting you selected. If it's too big for the surface, it spawns a random one.
    4. Once you place the painting your selection automatically resets.
    5. Or you can reset it manually using /painting cancel.
     
  5. JeterPan

    JeterPan Popular Meeper

    Offline
    Messages:
    56
    Likes Received:
    62
    +1, this would be amazing!!
     
  6. SuperDyl

    SuperDyl Popular Meeper

    Offline
    Messages:
    1,016
    Likes Received:
    645
    We should include this. It'd be a nice tool for those who want to, even if paintings aren't as unruly as they used to be.
     
  7. LordInateur

    LordInateur Deus Ex Machina Staff Member Administrator

    Offline
    Messages:
    490
    Likes Received:
    1,413
    This would be a cool plugin for sure, I think... maybe as a donor rank or something. However, I am of the opinion that techs on the server should look into fixing current server issues before adding mini-features :) As far as your project goes, I definitely think it's a good start, but there are a couple of places in the code that can be optimized and/or cleaned up a bit. Definitely let me know if you would like me to help out with the project.
     
    Natsu, MasterTurtle and Kling like this.
  8. Muunkee

    Muunkee Legendary art supply hoarder

    Offline
    Messages:
    11,620
    Likes Received:
    21,031
    I bet this would be too laggy for the servers really
     
  9. LordInateur

    LordInateur Deus Ex Machina Staff Member Administrator

    Offline
    Messages:
    490
    Likes Received:
    1,413
    Not as much as you would think, actually. A painting selector would really be a one-time-use per painting plugin, and there shouldn't be any continuous event listeners (those are really what lag a server). The most lag from this plugin would come from it being another plugin in general--the solution to which, of course, is consolidate small donor plugins into a single plugin.
     
  10. jadenPete

    jadenPete Code Writer & Meme Trader

    Offline
    Messages:
    335
    Likes Received:
    387
    Bingo. The only listener this uses is HangingPlaceEvent, which is very specific in that it runs only when an item frame or painting is placed. Even if you place a lot of item frames, a single if statement terminates the function if it isn't a painting. This is a very simple plugin, it just replaces the paintings that you place.
     
    SuperDyl likes this.
  11. ENIbeast

    ENIbeast Popular Meeper

    Offline
    Messages:
    220
    Likes Received:
    131
    When people know how to code and you're just sitting there trying to understand what they are saying even though there is no chance of understanding it.
     
    SuperDyl likes this.
  12. jadenPete

    jadenPete Code Writer & Meme Trader

    Offline
    Messages:
    335
    Likes Received:
    387
    Lmao, see post #4.
     
  13. NinjaRoxy

    NinjaRoxy Guest

    Online
    This is something that could be looked at, but not at a high priority.
     
    SuperDyl and iKitten like this.
  14. CluelessKlutz

    CluelessKlutz Badmin

    Offline
    Messages:
    2,996
    Likes Received:
    7,356
    Denied after further consideration
     

Share This Page