Discussion forum > Suggestions
Economy Improvement
Nick3306:
--- Quote from: ~pimkey5~ on May 10, 2015, 04:11:48 am ---I've been on other servers before where here are auctions and it can start to make chat a little spammed. If we were to have an auction command I'd suggest that there'd be a thing where people would have to wait about a minute or two after an auction is put up, before they choose to put an item up for auction.
--- End quote ---
why would it spam chat? The way I am thinking of doing it wouldn't spam at all
And Ya killing mobs for money would be awful, it was just an example.
100penguin.:
As I think I mentioned in the staff section I used to play frequently on a tekkit server whereby they had a kind of MCMMO thingy whereby levels could be gained for mining etc... And the higher your level the more you were paid as you advanced (for instance - building: level 1, 1 block = $0.01; level 100 1 block = $1.00) Any thoughts?
daniblue182:
Killing mobs would be good, but if you could set it to naturally spawning mobs rather than spawner spawned mobs it could work out well
Nick3306:
--- Quote from: 100penguin100 on May 10, 2015, 04:37:24 pm ---As I think I mentioned in the staff section I used to play frequently on a tekkit server whereby they had a kind of MCMMO thingy whereby levels could be gained for mining etc... And the higher your level the more you were paid as you advanced (for instance - building: level 1, 1 block = $0.01; level 100 1 block = $1.00) Any thoughts?
--- End quote ---
well we don't really want to implement any rpg stuff. Just simple for now
--- Quote from: daniblue182 on May 10, 2015, 06:35:02 pm ---Killing mobs would be good, but if you could set it to naturally spawning mobs rather than spawner spawned mobs it could work out well
--- End quote ---
Ya it would work well that way but as of right now, I don't know if it is possible to distinguish where the mob came from.
clawstrider:
--- Quote from: Nick3306 on May 10, 2015, 06:45:22 pm ---Ya it would work well that way but as of right now, I don't know if it is possible to distinguish where the mob came from.
--- End quote ---
It is. (After a quick bit of googling): Just listen for the spawn event, assign metadata for those that came from a spawner, then check whether or not the mob has your metadata on death.
Here's how McMMO does it:
--- Code: --- /**
* Monitor CreatureSpawn events.
*
* @param event The event to watch
*/
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onCreatureSpawn(CreatureSpawnEvent event) {
LivingEntity entity = event.getEntity();
switch (event.getSpawnReason()) {
case SPAWNER:
case SPAWNER_EGG:
entity.setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
Entity passenger = entity.getPassenger();
if (passenger != null) {
passenger.setMetadata(mcMMO.entityMetadataKey, mcMMO.metadataValue);
}
return;
case BREEDING:
entity.setMetadata(mcMMO.bredMetadataKey, mcMMO.metadataValue);
return;
default:
return;
}
}
--- End code ---
Note: Code function doesn't seem to be displaying it properly, and is even worse when within a spoiler. Might just be my browser though. Just look via the quote function
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version